import Vue from 'vue';
import VueRouter from 'vue-router';
const Register = () => import('../views/Register.vue');
const Login = () => import('../views/Login.vue');
const Home = () => import('../views/Home.vue');
const Personal = () => import('../views/Personal.vue');

Vue.use(VueRouter);
export default new VueRouter({
    mode: 'history',
    routes: [{
        path: '/register',
        component: Register,
    }, {
        path: '/login',
        component: Login
    }, {
        path: '/home',
        component: Home,
        meta: {
            show: true
        }
    }, {
        path: '/personal',
        component: Personal,
        meta: {
            show: true
        }
    }]
})